package com.itc.system.mapper;

import com.itc.system.domain.SysDeptMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author wangjinxia
* @description 针对表【sys_dept_menu】的数据库操作Mapper
* @createDate 2024-05-11 16:38:36
* @Entity com.itc.system.domain.SysDeptMenu
*/
public interface SysDeptMenuMapper extends BaseMapper<SysDeptMenu> {
    /**
     * 查询所有的权限
     * @return
     */
    public List<SysDeptMenu> getDeptMenuList();
    /**
     * 根据部门id查询权限
     * @param deptId
     * @return
     */
    public List<SysDeptMenu> getDeptMenuById(Long deptId );

    /**
     * 根据用户id查询权限
     * @param userId
     * @return
     */
    public List<SysDeptMenu> getDeptMenuByUserId(Long userId);

    /**
     * 根据部门id查询部门菜单
     * @param deptId
     * @return
     */
    public List<SysDeptMenu> getDeptMenuByDeptId(Long deptId);
}




